import request from '@/utils/request'

export function getList(page) {
  return request({
    url: '/api/equipment/list',
    method: 'get',
    params: {...page}
  })
}

export function getListEquip(page) {
  return request({
    url: '/api/equipment/list',
    method: 'get',
    params: {...page}
  })
}


//url: 'http://39.100.254.132:8080/user/add',
export function addUser(data) {
  return request({
    url: '/api/equipment/add',
    method: 'post',
    data:{...data},
  })
}

export function deleteUser(id) {
  return request({
    url: '/api/equipment/delete',
    method: 'post',
    params:{id}
  })
}


export function updateUser(data) {
  return request({
    url: '/api/equipment/updateInfo',
    method: 'post',
    data:{...data}
  })
}

export function getByZoom(zoomLevel) {
  return request({
    url: '/api/equipment/zoom',
    method: 'get',
    params:{zoomLevel}
  })
}

export function getDic() {
  return request({
    url: '/api/equipment/dbFieldNameList',
    method: 'get',
    params:{}
  })
}
